package com.yuyou.fn.analyze.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.analyze.entity.TeacherTarget;
import com.yuyou.fn.analyze.vo.TeacherTargetResultVo;
import com.yuyou.fn.analyze.vo.TeacherTargetVo;
import com.yuyou.fn.educational.vo.TeacherQueryVo;
import com.yuyou.fn.platform.permission.DataPermission;

import java.util.List;

/**
 *
 * TeacherTarget 表数据服务层接口
 *
 */
public interface ITeacherTargetService extends ISuperService<TeacherTarget,String> {

    public void insertByList(Long teacherId,String year,Integer targetType,List<TeacherTargetVo> teacherTargetVoList);

    public void deleteByTeacherIdAndTargetType(Long teacherId,String year,Integer targetType);


    public List<TeacherTarget> findListByTeacherIdsAndPeriodIds(List<Long> teacherIds, List<Long> periodIdList, String year, List<Integer> targetTypeList);


    public Page<TeacherTargetResultVo> findPageByBusTeamIdAndYear(TeacherQueryVo teacherQueryVo, DataPermission dataPermission, String year, int pageNo, int pageSize);

    public List<TeacherTarget> findListByTeacherIdsAndPeriodId(List<Long> teacherIds,Long periodId);

    public List<TeacherTarget> findListByTeachersAndPeriodIds(List<Long> teacherIds,List<Long> periodIds);

    List<TeacherTarget> findTeacherTargetByPeriodIdsAndTargetTypes(List<Long> periodIds,List<Integer> targetTypes);

}